package com.authManager.commons.feignApi.hystric;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.stereotype.Component;

import com.authManager.commons.feignApi.SysCodeApi;
import com.authManager.entity.SysCode;

import com.commons.base.model.AdminPage;
import com.commons.base.model.ResultCode;
import com.commons.base.model.ResultData;

@Component
public class SysCodeApiHystric implements SysCodeApi {

	@Override
	public ResultData<Object> saveSysCode(String codeType, String code, String name, String val) {
		return new ResultData.Builder<Object>(ResultCode.reqeust_TimeOut).build();
	};

	@Override
	public ResultData<Object> editSysCode(@RequestParam(required = true) Integer sysCodeId, String codeType,
			String code, String name, String val) {
		return new ResultData.Builder<Object>(ResultCode.reqeust_TimeOut).build();
	};

	@Override
	public ResultData<Object> delSysCode(Long sysCodeId) {
		return new ResultData.Builder<Object>(ResultCode.reqeust_TimeOut).build();
	};

	@Override
	public ResultData<SysCode> getSysCode(Long sysCodeId) {
		return new ResultData.Builder<SysCode>(ResultCode.reqeust_TimeOut).build();
	};

	@Override
	public ResultData<AdminPage<SysCode>> listSysCode(Integer pageNum, Integer pageSize, Integer sysCodeId,
			String codeType, String code, String name, String val) {
		return new ResultData.Builder<AdminPage<SysCode>>(ResultCode.reqeust_TimeOut).build();
	};
}
